<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ include file="/WEB-INF/component/commonTagLib.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <title><spring:message code="message.jieSuan.zhongXing"/> <spring:message code="message.listForm.weiShengJu"/><spring:message code="message.jieSuan.zhangHuShenHe"/></title>
    <%@ include file="/WEB-INF/component/commonCSS.jsp"%>
    <style type="text/css">
        div.group-info {
            margin-top: 10px !important;
            margin-bottom: 0px !important;
        }
        input.innerInput {
            width: 98%;
        }
    </style>
</head>
<body class="skin-blue sidebar-mini fixed skin-blue-light-frame">
    <section class="content-header">
        <h1><spring:message code="message.listForm.weiShengJu"/><spring:message code="message.jieSuan.zhangHuShenHe"/></h1>
        <ol class="breadcrumb">
            <li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i><spring:message code="message.lable.first"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.jieSuan.zhangHuGuanLi"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.listForm.weiShengJu"/><spring:message code="message.jieSuan.zhangHuGuanLi"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.listForm.weiShengJu"/><spring:message code="message.jieSuan.zhangHuShenHe"/></a></li>
        </ol>
     </section>

    <section class="content">
        <div class=" box box-success">
            <div class="box-body">
                <div class=" form-inline">
        
                   <div class="form-group form-group-xs">
                       <spring:message code="message.jieSuan.jiGouBianMa"/><spring:message code="message.yanZheng.maoHao"/> <input class="form-control" type="text" id="orgCode" name="orgCode" placeholder="<spring:message code="message.jieSuan.jiGouBianMa"/>" />
                   </div>
                   <div class="form-group form-group-xs">
                        <spring:message code="message.jieSuan.jiGouMingCheng"/><spring:message code="message.yanZheng.maoHao"/> <input class="form-control" type="text" id="orgName"  name="orgName" placeholder="<spring:message code="message.jieSuan.jiGouMingCheng"/>" />
                   </div>
                   <div class="form-group form-group-xs">
                        <spring:message code="message.jieSuan.yinHangZhangHao"/><spring:message code="message.yanZheng.maoHao"/> <input class="form-control" type="text" id="bankAcctNo" name="bankAcctNo" placeholder="<spring:message code="message.jieSuan.yinHangZhangHao"/>" />
                   </div>
                   <div class="form-group form-group-xs">
                        <spring:message code="message.jieSuan.kaiHuRen"/><spring:message code="message.yanZheng.maoHao"/> <input class="form-control" type="text" id="acctHolder"  name="acctHolder" placeholder="<spring:message code="message.jieSuan.kaiHuRen"/>" />
                   </div>
                    
                   <button type="button" onclick="gridSerch();" class="btn btn-success btn-sm"><spring:message code="message.button.seachSpacing"/></button>
                    
                </div>
            </div>
        </div>
        
        <table class="jqgrid" id="gridlist"></table>
        <div id="gridpage"></div>
        
       
         
        
       
   </section>
    
   <%@ include file="/WEB-INF/component/commonJS.jsp"%>
   <script type="text/javascript">
   $(function() {
       $("#gridlist").jqGrid(
       {   url : "getCenterAuditCheck.html",
           mtype : "POST",
           postData:{},
           datatype : "json",
           autowidth : true,
          // shrinkToFit : false,
           height : 356,
           colNames : ['<spring:message code="message.jqGrid.cz"/> ',
                       '<spring:message code="message.jieSuan.zhangHu"/>id',
                       '<spring:message code="message.jieSuan.jiGouBianMa"/>',
                       '<spring:message code="message.jieSuan.jiGouMingCheng"/> ',
                       '<spring:message code="message.jieSuan.yinHangZhangHao"/>id',
                       '<spring:message code="message.jieSuan.zhangHu"/>id',
                       '<spring:message code="message.jieSuan.yinHangZhangHao"/>',
                       '<spring:message code="message.jieSuan.kaiHuRen"/> ',
                       '<spring:message code="message.jieSuan.kaiHuHang"/> ',
                       '<spring:message code="message.jieSuan.kaiHuHangHangHao"/> ',
                       '<spring:message code="message.jieSuan.kaiHuHangHangMing"/>'
                       ],
           colModel : [
               {name : 'order',index : 'order',width : 80,align : "center", sortable:false,
                      formatter:function(val, opts,rowdata) {
                      var str ="";
                      str =  "<a href='toCenterAuditCheckAudit.html?bankAcctId=" +rowdata.bankAcctId  + "' style='background:url(${ctx}/lib/img/icon/icon.png) no-repeat 0px -40px' class='opIcon' title='审核'></a>"
                      return str
                      }
               },
               {name : 'orgId',index : 'orgId',hidden : true , width : 100,align : "center", sortable:false},
               {name : 'orgCode',index : 'orgCode',width : 120,align : "center", sortable:false},  
               {name : 'orgName',index : 'orgName',width : 160,align : "left", sortable:false}, 
               {name : 'bankAcctId',index : 'bankAcctId', hidden : true,width : 100,align : "center", sortable:false},
               {name : 'settleAcctId',index : 'settleAcctId',hidden : true , width : 100,align : "center", sortable:false},
               {name : 'bankAcctNo',index : 'bankAcctNo', width : 160,align : "center", sortable:false},   
               {name : 'acctHolder',index : 'acctHolder',width : 80,align : "center", sortable:false}, 
               {name : 'depositBank',index : 'depositBank', hidden:true,width : 120,align : "center", sortable:false},
               {name : 'depositBankNo',index : 'depositBankNo',width : 120,align : "center", sortable:false},
               {name : 'depositBankName',index : 'depositBankName',width : 200,align : "left", sortable:false}
               
           ],
           rowNum : 20,
           rowList : [10, 20, 50,100],
           rownumbers : true,
           pager : "#gridpage",
           viewrecords : true,
           caption : "<spring:message code="message.listForm.weiShengJu"/><spring:message code="message.jieSuan.zhangHuShenHe"/><spring:message code="message.listForm.lieBiao"/>",
           jsonReader : {
               repeatitems : false,
               id : "ids"
           }
       });
       $("#gridlist").jqGrid('navGrid', '#gridpage', {add : false,edit : false,del : false,search : false,refresh : false});
       $(window).trigger("resize");
   });
        
           function getFoucs(obj, rowId) {
               var text = $.trim($(obj).val());
               if (text != null && text != "") {
                   var $checkbox = $("#jqg_gridlist_" + rowId);
                   if ($checkbox.is(":not(:checked)")) {
                       $("#gridlist").setSelection(rowId);
                   }
               }
           }
           
           //查询
           function gridSerch() {
        	   var orgCode = $.trim($("#orgCode").val());
               var orgName = $.trim($("#orgName").val());
               var bankAcctNo = $.trim($("#bankAcctNo").val());
               var acctHolder = $.trim($("#acctHolder").val());
               $("#gridlist").jqGrid('setGridParam',{  
                   datatype:'json',
                   postData:{
                	   "orgCode":orgCode,
                       "orgName":orgName,
                       "bankAcctNo":bankAcctNo,
                       "acctHolder":acctHolder
                   },
                   page:1
               }).trigger("reloadGrid"); //重新载入  
           }
           
          
               
           
    </script>
</body>
</html>